From d7cf9d7b84d3e9188baf6637809b4bb61a48453c Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Mon, 19 Mar 2012 07:06:04 -0400 Subject: [PATCH] combobox: Make scrolling work again Select for scroll events, making it possible to use a scroll wheel to change the combobox. --- gtk/gtkcombobox.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gtk/gtkcombobox.c b/gtk/gtkcombobox.c index 6cbcb39192..53fe1b1ea3 100644 --- a/gtk/gtkcombobox.c +++ b/gtk/gtkcombobox.c @@ -3133,6 +3133,7 @@ gtk_combo_box_menu_setup (GtkComboBox *combo_box, priv->arrow = gtk_arrow_new (GTK_ARROW_DOWN, GTK_SHADOW_NONE); gtk_container_add (GTK_CONTAINER (priv->box), priv->arrow); + gtk_widget_add_events (priv->button, GDK_SCROLL_MASK); gtk_widget_show_all (priv->button); } @@ -3149,6 +3150,7 @@ gtk_combo_box_menu_setup (GtkComboBox *combo_box, priv->arrow = gtk_arrow_new (GTK_ARROW_DOWN, GTK_SHADOW_NONE); gtk_container_add (GTK_CONTAINER (priv->button), priv->arrow); + gtk_widget_add_events (priv->button, GDK_SCROLL_MASK); gtk_widget_show_all (priv->button); } -- 2.30.2